package org.example.exception;

import org.example.dao.commom.ResultCode;

/**
 * @author 22449
 */
public class ServerErrorException extends RuntimeException implements BaseException {

    String msg;

    public ServerErrorException(String msg) {
        this.msg = msg;
    }


    /**
     * 不写入堆栈信息，提高性能
     */
    @Override
    public Throwable fillInStackTrace() {
        return this;
    }


    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public ResultCode getCode() {
        return ResultCode.SERVER_ERROR;
    }


}
